﻿@model ProjectBordspil.Models.RegisterModel

@{
    ViewBag.Title = "Nýskráning";
}


<h2 class="AccountHeader">Nýskráning</h2>
<h3 class ="AccountText">
    Ánægjulegt að þú ætlar að gerast notandi
</h3>


<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true, "Ekki tókst að stofna aðganginn. Vinsamlega athugaðu hvort rétt hafi verið fyllt inn í reitina.")
    <div>
        <fieldset>
            <legend> </legend>

              <div class="editor-label">
                @Html.LabelFor(m => m.Name)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.Name)
                @Html.ValidationMessageFor(m => m.Name)
            </div>
            <div class="editor-label">
                @Html.LabelFor(m => m.Age)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.Age)
                @Html.ValidationMessageFor(m => m.Age)
            </div>


            <div class="editor-label">
                @Html.LabelFor(m => m.UserName)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.UserName)
                @Html.ValidationMessageFor(m => m.UserName)
            </div>

            <div class="editor-label">
                @Html.LabelFor(m => m.Password)
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.Password)
                @Html.ValidationMessageFor(m => m.Password)
            </div>

            <div class="editor-label">
                @Html.LabelFor(m => m.ConfirmPassword)
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.ConfirmPassword)
                @Html.ValidationMessageFor(m => m.ConfirmPassword)
            </div>

            <div class="editor-label">
                @Html.LabelFor(m => m.Email)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.Email)
                @Html.ValidationMessageFor(m => m.Email)
            </div>

             <div class="editor-label">
                @Html.LabelFor(m => m.ConfirmEmail)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.ConfirmEmail)
                @Html.ValidationMessageFor(m => m.ConfirmEmail)
            </div>

            <div class="editor-label">
                @Html.LabelFor(m => m.Photo)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.Photo)
                @Html.ValidationMessageFor(m => m.Photo)
                
                <input class="InfoButton"  type="submit" value="Hlaða niður mynd" />

            </div>


            <p>
                <input class="InfoButton" type="submit" value="Staðfesta skráningu" />
            </p>
        </fieldset>
    </div>
}
